<?php

$host = $_SERVER["SERVER_NAME"];
if ($host == 'test.qiaoen.bndvip.com') {
	$name = 'qiaoenDB';
	$pwd = 'phpjavapython';
}elseif($host == 'www.qiaoen.com' ){
	$name = 'qiaoen';
	$pwd = 'root';
}else{
	$name = 'qiaoen';
	$pwd = 'b6FXxVijh3VV';
}

return array(
	//'配置项'=>'配置值'
	    //数据库连接
    'DB_TYPE'               =>  'mysql',     // 数据库类型
    'DB_HOST'               =>  '127.0.0.1',         // 服务器地址
    'DB_NAME'               =>  $name,          // 数据库名
    'DB_USER'               =>  'root',      // 用户名
    'DB_PWD'                =>  $pwd,          // 密码
    'DB_PORT'               =>  '3306',        // 端口
    'DB_PREFIX'             =>  '',         // 数据库表前缀
    'DB_CHARSET'            =>  'utf8',      // 数据库编码默认采用utf8
	'MENU'=>array(
        array(
            'id'=>2,
            'name'=>'行政',
			'img'=>'/Public/images/L2.png',
            'son'=>array(
                array('id'=>21,'name'=>'报名学员列表','href'=>'Studentlist/index'),
				/*array('id'=>22,'name'=>'课时费管理','href'=>'Timecost/index'),
				array(
					'id'=>23,
					'name'=>'记账管理',
					'son'=>array(
						array('id'=>231,'name'=>'记账本','href'=>'Bookkeeping/Cashbook'),
						array('id'=>232,'name'=>'实时收入统计','href'=>'Bookkeeping/IncomeStatistics'),
						array('id'=>234,'name'=>'账目分类','href'=>'Bookkeeping/AccountsCassify'),
						array('id'=>235,'name'=>'账户设置','href'=>'Bookkeeping/AccountSetup')
				)
				),*/
				array('id'=>24,'name'=>'合同管理','href'=>'Contract/index'),
				array(
					'id'=>25,
					'name'=>'仓库管理',
					'son'=>array(
						array('id'=>251,'name'=>'入库管理','href'=>'Warehouse/warehousing'),
						array('id'=>252,'name'=>'库存管理','href'=>'Warehouse/stock'),
						array('id'=>253,'name'=>'出库管理','href'=>'Warehouse/outgoing')
				)
				)
            )
        ),
		array(
			'id'=>3,
			'name'=>'人事',
			'img'=>'/Public/images/L3.png',
			'son'=>array(
				array('id'=>31,'name'=>'增加员工','href'=>'Personnel/AddWorkers'),
				array('id'=>32,'name'=>'员工列表','href'=>'Personnel/WorkersList'),
				array('id'=>32,'name'=>'考勤信息','href'=>'Personnel/Worktime')
				)
		),
		array(
			'id'=>4,
			'name'=>'教务',
			'img'=>'/Public/images/L4.png',
			'son'=>array(
				array(
					'id'=>41,
					'name'=>'班级管理',
					'son'=>array(
						array('id'=>411,'name'=>'开设班级','href'=>'Classsetting/setupclass'),
						array('id'=>412,'name'=>'班级列表','href'=>'Classsetting/classList'),
						array('id'=>413,'name'=>'排班表(总)','href'=>'Classsetting/schedule'),
						array('id'=>414,'name'=>'教室管理','href'=>'Classsetting/classroomSet'),
						array('id'=>415,'name'=>'假日设置','href'=>'Classsetting/holidaySet'),
						array('id'=>416,'name'=>'课程管理','href'=>'Classsetting/curriculum'),
					)
				),
				array(
					'id'=>42,
					'name'=>'学员管理',
					'son'=>array(
						array('id'=>421,'name'=>'已排班学员','href'=>'Student/index'),
						array('id'=>422,'name'=>'未排班学员','href'=>'Home/Student/index/ppid/2'),
						array('id'=>423,'name'=>'异动记录','href'=>'Student/MoveRecord'),
						array('id'=>424,'name'=>'异动查询','href'=>'Student/Strange'),
						array('id'=>425,'name'=>'过生日学员','href'=>'Student/BirthdayStudents')
					)
				),
				array('id'=>43,'name'=>'出勤管理','href'=>'Attendance/index')
			)
		),
		array(
			'id'=>5,
			'name'=>'销售',
			'img'=>'/Public/images/L5.png',
			'son'=>array(
				array('id'=>51,'name'=>'客户信息录入','href'=>'Customer/CustomerInput'),
				array('id'=>52,'name'=>'未报名客户','href'=>'Customer/CustomerList'),
				array('id'=>53,'name'=>'已报名客户','href'=>'Customer/CustomerList2'),
				array('id'=>54,'name'=>'试听课','href'=>'Customer/Classroom'),
				array('id'=>55,'name'=>'客户冲突信息','href'=>'Customer/studenterrors'),
				array('id'=>56,'name'=>'资源池','href'=>'Customer/CustomerPool')
				)
		),
		array(
			'id'=>6,
			'name'=>'市场',
			'img'=>'/Public/images/L6.png',
			'son'=>array(
				array('id'=>61,'name'=>'客户信息导入','href'=>'Information/index'),
				array('id'=>61,'name'=>'客户冲突查询','href'=>'Information/chongtu')
				)
		),
		array(
			'id'=>7,
			'name'=>'数据',
			'img'=>'/Public/images/L7.png',
			'son'=>array(
				array('id'=>71,'name'=>'数据分配','href'=>'Datasetting/DataAllocation'),
				array(
                    'id' => 72,
                    'name' => '数据分析',
//                    'href' => 'Datasetting/CustomerList',
                    'son' => array(
                        array(
                            'id' => 721,
                            'name' => '招生数据分析',
//                            'href' => 'Datasetting/RegisteredStudents',
                            'son' => array(
                                array('id' => 7211, 'name' => '报名咨询人数', 'href' => 'Datasetting/counselling'),
                                array('id' => 7212, 'name' => '广告效果分析', 'href' => 'Datasetting/advertising'),
                                array('id' => 7213, 'name' => '课程热度分析', 'href' => 'Datasetting/analysisCourse')
                            )
                        ),
                        array('id' => 722,
                            'name' => '财务数据分析',
                            //'href' => 'Datasetting/UnenrolledStudents',
                            'son' => array(
                                array('id' => 7221, 'name' => '所有校区收入', 'href' => 'Datasetting/financialData1'),
                                array('id' => 7222, 'name' => '单个校区收入', 'href' => 'Datasetting/financialData2'),
                            )
                        ),
                        array('id' => 723,
                            'name' => '教务数据分析',
                            //'href' => 'Datasetting/MoveRecord',
                            'son' => array(
                                array('id' => 7231, 'name' => '全年学员异动', 'href' => 'EducationData/studentAbnormalChanges'),
                                array('id' => 7232, 'name' => '新增比', 'href' => 'EducationData/newAddPercentage'),
                                array('id' => 7233, 'name' => '老师课量分析', 'href' => 'EducationData/teacherClassNum'),
                                array('id' => 7234, 'name' => '续报比', 'href' => 'EducationData/renewPercentage')
                            )
                        )
                    )
                )
			)
		),
		array(
			'id'=>8,
			'name'=>'基本设置',
			'img'=>'/Public/images/L6.png',
			'son'=>array(
				array('id'=>81,'name'=>'权限设置','href'=>'Power/index'),
				array('id'=>82,'name'=>'用户设置','href'=>'User/index'),
				array('id'=>83,'name'=>'分类设置','href'=>'Other/index'),
				array('id'=>84,'name'=>'基本设置','href'=>'Basic/index')
				)
		),
		array(
            'id'=>9,
            'name'=>'校长',
            'img'=>'/Public/images/L6.png',
            'son'=>array(
                array('id'=>91,'name'=>'优惠活动','href'=>'Activity/index'),
            )
        )
    )
);